package com.itcast.service.impl;

import com.itcast.dao.EmpDao;
import com.itcast.pojo.Emp;
import com.itcast.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpDao empDao;
    @Override
    public List<Emp> findAll() throws Exception {
        return empDao.findAll();
    }
}
